var http=require('http');
var url=require('url');
var util=require('util');

var server=http.createServer(function(req,res){
    res.writeHead(200,{'Content-Type':'text/plain'});
    var params=url.parse(req.url,ture).query;
    res.write("网站名:"+params.name)
    res.write("\n");
    res.write("网站名 URL:"+params.url);
    res.end();
})
server.listen(3000);